import axios from 'axios'

export function request(config){
    const instance = axios.create({
        baseURL : 'http://timemeetyou.com:8889/api/private/v1'
    })
    instance.interceptors.request.use(config => {
        
        config.headers.Authorization = window.sessionStorage.getItem('token')
        return config
    },err => {
        // console.log(err)
    })
    return instance(config)
}